class Admin::ApplicationController < ApplicationController
  layout 'admin'

  before_action :check_admin

  private
  def check_admin
    redirect_to admin_sign_in_url and return unless session[:admin]
  end
end
